package com.boruan.qq.zxgylibrary.ui.activities;

import android.content.Intent;
import android.graphics.Color;
import android.os.Build;
import android.os.Bundle;
import android.view.View;

import com.boruan.qq.zxgylibrary.R;
import com.boruan.qq.zxgylibrary.R2;
import com.boruan.qq.zxgylibrary.base.BaseActivity;

import butterknife.OnClick;

/**
 * Created by 崔琦 on 2019/8/16.
 * des: 支付成功页面
 */

public class PaySuccessActivity extends BaseActivity {
    @Override
    protected int getLayoutId() {
        if (Build.VERSION.SDK_INT >= 21) {
            View decorView = getWindow().getDecorView();
            decorView.setSystemUiVisibility(View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN | View.SYSTEM_UI_FLAG_LAYOUT_STABLE);
            getWindow().setStatusBarColor(Color.TRANSPARENT);
        }
        return R.layout.drug_activity_pay_success;
    }

    @Override
    protected void init(Bundle savedInstanceState) {

    }

    @OnClick({R2.id.tv_close_shop, R2.id.tv_back_detail})
    public void onViewClicked(View view) {
        int i = view.getId();
        if (i == R.id.tv_close_shop) {
            finish();

        } else if (i == R.id.tv_back_detail) {
            Intent intent = new Intent(PaySuccessActivity.this, OrderDetailActivity.class);
            intent.putExtra("orderStatus", "");
            startActivity(intent);

        }
    }
}
